import DI from '@/components/MiniBpmn/utils/di';
import { type Option } from '../../../../types';

export abstract class IBaseSelector extends DI {
    component?: React.FC<{ service: any }>;
    onShow?(): void;
    /** 初始化视图 */
    abstract init(): void;
    /** 初始化化数据，为节点添加默认值 */
    abstract initData(): void;
}

export interface ISelectorOption extends Option {
    /** 选择器 */
    Service: new () => IBaseSelector
}
